package com.beigai.imessage.user.action;

import com.beigai.imessage.server.UserSession;
import com.beigai.imessage.session.CurrentUserSession;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xxl on 2017/5/18.
 */
@RestController
@RequestMapping("/user")
public class UserAction {
    /**
     * 获取用户session
     * @return
     */
    @RequestMapping("/session")
    public UserSession getUserSession() {
        return CurrentUserSession.get();
    }

}
